package com.system.commonutils.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author Xuheng Zhou
 * @date 2020/6/8 11:36
 * @desc
 */
@ApiModel("分页实体类")
public class PagesBean<T> {
    @ApiModelProperty(name="nowsPage" ,notes = "当前页数")
    private int nowsPage;//当前页数
    @ApiModelProperty(name="pageSize" ,notes = "页面显示条数")
    private int pageSize;//页面显示条数
    @ApiModelProperty(name="dataCount" ,notes = "数据总条数")
    private int dataCount;//数据总条数
    @ApiModelProperty(name="data" ,notes = "返回数据")
    private List<T> data;//返回数据


    public int getNowsPage() {
        return nowsPage;
    }

    public void setNowsPage(int nowsPage) {
        this.nowsPage = nowsPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getDataCount() {
        return dataCount;
    }

    public void setDataCount(int dataCount) {
        this.dataCount = dataCount;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

}
